package com.snakegame;

import com.snakegame.core.GameManager;
import com.snakegame.ui.GameFrame;

import javax.swing.SwingUtilities;

/**
 * 游戏主类，程序入口点
 */
public class Main {
    public static void main(String[] args) {
        SwingUtilities.invokeLater(() -> {
            GameManager gameManager = new GameManager();
            GameFrame gameFrame = new GameFrame(gameManager);
            gameFrame.setVisible(true);
        });
    }
}    